﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverlightAnimation;

namespace AnimationTest
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            testButton.Opacity = 0.3;
        }

        private void testButtonClick(object sender, RoutedEventArgs e)
        {
            PositionAnimation.AnimatePosition(testButton, new Point(200, 200), 2);
            SizeAnimation.AnimateSize(testButton, new Size(200, 200), 2);
            OpacityAnimation.Fade(testButton, 1.0, 2);
            RotationAnimation.AnimateRotation(testButton, 90, 2);
        }
    }
}
